<?php
class CenterAction extends Action {

	public function index() {
	
		$this->title = '履历中心';
		
		$UserBasic = D('UserBasic');
		
		dump($UserBasic->findAll());
		
		$this->display();
		
	}
	
	public function edit_basic() {
		
		$aaa = D('UserBasic');
		
		dump($aaa->findAll());
	
		$this->display('edit_basic');
	
	}

	public function add() {
	
		$UserBasic = D('UserBasic');
		
		if (!$UserBasic->create()) {
		
			header("Content-Type:text/html; charset=utf-8");
			
			exit($UserBasic->getError().' [ <A HREF="javascript:history.back()">返 回</A> ]');
			
		}else {
		
			$UserBasic->add();
			
			$this->redirect();
			
		}
		
	}
}